x1=-2:0.01:3;y1=1+log(x1+2);
x2=-2:0.01:3;y2=exp(x2-1)-2;
plot(x1,y1,'r-',x2,y2,'b-')
grid on
axis([-2,3,-2,3])